//
//  ViewController.swift
//  CarouselAd_swift
//
//  Created by Eastwood on 15/10/23.
//  Copyright (c) 2015年 sunc. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.grayColor()
        var adView = JXBAdPageView(frame: CGRectMake(0, 200, self.view.frame.size.width, 100))
        adView.iDisplayTime = 1
        //        adView.delegate = self
        let arr = ["test_1","test_4","test_3"]
        adView.startAds(arr, closure:{(clickIndex: NSInteger) in
            println(clickIndex)
        })
        adView.backgroundColor = UIColor.redColor()
        self.view.addSubview(adView)
    }
    //    @objc func setWebImage(imgView:UIImageView, imgUrl:NSString)
    //    {
    //
    //    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }



}

